﻿<%@ Page Title="" Language="C#" MasterPageFile="~/lvyouguanli/GuanliMater.master" AutoEventWireup="true" CodeBehind="jingdian.aspx.cs" Inherits="map.lvyouguanli.WebForm3" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContent" runat="server">
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
    <ContentTemplate>     
    <asp:UpdatePanel ID="grid_update" runat="server">
    <ContentTemplate>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        Width="600px"
        CellPadding="4" ForeColor="#333333" GridLines="None" 
        onrowdeleted="GridView1_RowDeleted" onrowdeleting="GridView1_RowDeleting" 
        onselectedindexchanged="GridView1_SelectedIndexChanged" 
        onselectedindexchanging="GridView1_SelectedIndexChanging" 
         DataKeyNames="RECID" BorderWidth="1px">
        <RowStyle BackColor="#EFF3FB" />
        <Columns>
            <asp:BoundField DataField="RECID" HeaderText="RECID" SortExpression="RECID" Visible="False"/>
            <asp:BoundField DataField="Name" HeaderText="名称"  >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="Description" HeaderText="详细" >
              <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
              <asp:BoundField DataField="Transport" HeaderText="交通" >
                    <ItemStyle HorizontalAlign="Center" />         </asp:BoundField>     
            <asp:BoundField DataField="createdate" HeaderText="建立日期" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:CommandField ShowSelectButton="True" />
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" 
            HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
         <EmptyDataTemplate>
                    当前没有折扣数据,请在下方增加.
                </EmptyDataTemplate>
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    
    </ContentTemplate>
    </asp:UpdatePanel>
    
    <asp:Label ID="Label_recid" runat="server" Text="RECID" Visible="False"></asp:Label><br />
    <asp:Label ID="districtLabel" name="districtLabe" runat="server">名称：</asp:Label>
    <asp:TextBox ID="Name" name="newDistrict" runat="server"></asp:TextBox><span class="style5">&nbsp;*</span>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="必须填写项目。" ControlToValidate="Name"></asp:RequiredFieldValidator>
    <br /><asp:Label ID="mapLatLabel" name="mapLatLabel" runat="server">详细：</asp:Label>
   
    <%--<span class="style5">&nbsp;*</span>--%>
    <div class="fck">
             <FCKeditorV2:FCKeditor ID="Description" runat="server" Height="300px" Width="100%">
        </FCKeditorV2:FCKeditor>
   </div>
      <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="必须填写项目。" ControlToValidate="Description"></asp:RequiredFieldValidator>--%>
    <br /><asp:Label ID="mapLngLabel" name="mapLatLabel" runat="server">交通：</asp:Label>
  <%--  <asp:TextBox ID="desp" name="MapLat" runat="server" 
            TextMode="MultiLine"></asp:TextBox>--%>
            <div class="fck">
             <FCKeditorV2:FCKeditor ID="Transport" runat="server" Height="300px" Width="100%">
        </FCKeditorV2:FCKeditor>
   </div>
<%--            <br /><asp:Label ID="Label1" name="mapLatLabel" runat="server">有效期自：</asp:Label>
    <asp:TextBox ID="validdate" name="mapLng" runat="server" ></asp:TextBox><asp:ImageButton runat="server" ID="Image1" ImageUrl="../img/Calendar.png" />

    <span class="style5">&nbsp;*</span>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="必须填写项目。" ControlToValidate="validdate"></asp:RequiredFieldValidator> 
       <br /><asp:Label ID="Label2" name="mapLatLabel" runat="server">有效天数：</asp:Label>
    <asp:TextBox ID="validtime" name="mapLng" runat="server" ></asp:TextBox>
    <span class="style5">&nbsp;*</span>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="必须填写项目。" ControlToValidate="validtime"></asp:RequiredFieldValidator><br />--%>
        <asp:Button ID="Button1" runat="server" Text="增加" onclick="Button1_Click" /> 
     <asp:Button ID="Button2" runat="server" Text="修改" onclick="Button2_Click" /><br />
     <%--<cc1:CalendarExtender ID="CalendarExtender1" runat="server" PopupButtonID="Image1" Format="yyyy MMMM d" TargetControlID="validdate" EnabledOnClient="True">
</cc1:CalendarExtender>
--%>
       </ContentTemplate></asp:UpdatePanel>
</asp:Content>
